<div class="page">
	<div class="page-head">
		<h1 class="font-thin h4">编辑客户单位</h1>
	</div>
	<div class="client-tab">
		<span class="client-tab-cur">基本信息</span>
		<span ui-sref="app.client.customerrepresentative_manageNew">客户代表</span>
		<span ui-sref="app.client.goodstype_manageNew">货物分类</span>
		<span ui-sref="app.client.goods_manageNew">货物</span>
		<span ui-sref="app.client.settleManagentNew">结算方</span>
		<span ui-sref="app.client.lineprice_manageNew">线路报价</span>
		<span ui-sref="app.client.projectManagentNew">工程</span>
		<span ui-sref="app.client.clientinfo_manageNew">客户资料</span>
		<span ui-sref="app.client.returnPeriodNew">对账回款周期</span>
	</div>
	<div class="page-body">
	<form id="clientEditForm" name="step1" class="form-validation form-horizontal" novalidate  ng-controller="clientManagentEditController">
		<table class=" table-bordered client-table client-table-top">
			<tr>
				<td class="client-td-left"><span class="text-danger">*</span>客户单位：</td>
				<td class="client-td-right">
					<input id="client_name" type="text" class="form-control input-sm ipt-3" ng-model="name" required placeholder="请填写客户单位名称" name="name">
				</td>
			</tr>
			<tr>
				<td class="client-td-left"><span class="text-danger">*</span>客服专员：</td>
				<td class="client-td-right">
					<select id="client_serviceOfficer" class="form-control input-sm ipt-2 tms-select" ng-model="serviceOfficer.id" ng-options="x.id as x.realName for x in serviceOfficerIdDropDown"
						name="clientServiceOfficerId" required>
						<option value="">请选择</option>
					</select>
				</td>
			</tr>
			<tr>
				<td class="client-td-left"><span class="text-danger">*</span>商务专员：</td>
				<td class="client-td-right">
					<select id="client_businessOfficer" class="form-control input-sm ipt-2 tms-select" ng-model="businessOfficer.id" ng-options="x.id as x.realName for x in businessOfficerDropDown"
						name="businessOfficerId" required>
						<option value="">请选择</option>
					</select>
				</td>
			</tr>
			<tr>
				<td class="client-td-left"><span class="text-danger">*</span>客户地址：</td>
				<td class="client-td-right">
					<tms-address  class=""
						province="provinceCode"
						city="cityCode" 
						area="areaCode"
						city-list="CityList" 
						area-list="AreaList"
						required="true"
						ischecked="true"
					>
					</tms-address>
				</td>
			</tr>
			<tr>
				<td class="client-td-left"><span class="text-danger">*</span>详细地址：</td>
				<td class="client-td-right">
					<input id="client_address" type="text" class="form-control input-sm ipt-3" ng-model="address" placeholder="请填写详细地址" name="address" required>
				</td>
			</tr>
			<tr>
				<td class="client-td-left"><span class="text-danger">*</span>手机号码：</td>
				<td class="client-td-right">
					<input id="client_phoneNumber" type="tel" class="form-control input-sm ipt-3" ng-model="phoneNumber" placeholder="请填写手机号" name="phoneNumber" ng-pattern="/^1\d{10}$/"
						required>
				</td>
			</tr>
			<tr>
				<td class="client-td-left"><span class="text-danger">*</span>管理员账号：</td>
				<td class="client-td-right">
					<input id="client_adminUserName" type="text" class="form-control input-sm ipt-3" ng-model="adminUserName" disabled="disabled" placeholder="请填写管理员账号"  required
						name="adminUserName">
				</td>
			</tr>
			<tr>
				<td class="client-td-left">管理员密码：</td>
				<td class="client-td-right">
					<input id="client_adminPassword" type="password" class="form-control input-sm ipt-3" ng-minlength="6" ng-model="adminPassword" placeholder="请填写管理员密码"  name="adminPassword">
				</td>
			</tr>
			<tr>
				<td class="client-td-left">重复管理员密码：</td>
				<td class="client-td-right">
					<input id="client_reAdminPassword" type="password" class="form-control input-sm ipt-3" ng-minlength="6" ng-model="reAdminPassword" placeholder="请再次填写管理员密码" 
							name="reAdminPassword" ui-validate=" '$value==adminPassword' " ui-validate-watch=" 'adminPassword' " ng-change="step1.reAdminPassword.$valid ? (steps.percent=20) : (steps.percent=15)">
						<span class="text-danger m-l-sm" ng-show='step1.reAdminPassword.$error.validator'>密码不匹配！</span>
				</td>
			</tr>
			<tr>
				<td class="client-td-left"><span class="text-danger">*</span>客户类型：</td>
				<td class="client-td-right">
					<select id="client_type" class="form-control input-sm ipt-2 tms-select" ng-model="clientType" ng-options="x.value as x.text for x in clientTypeList"
							name="clientTypeId" >
						<option value="">请选择</option>
					</select>
				</td>
			</tr>
			<tr>
				<td class="client-td-left">产品：</td>
				<td class="client-td-right">
					<textarea class="form-control input-sm ipt-3" ng-model="products" placeholder="请填写产品以逗号隔开" name="products"></textarea>
				</td>
			</tr>
			<tr>
				<td class="client-td-left">产品包装方式 ：</td>
				<td class="client-td-right">
					<input id="client_productPack" type="text" class="form-control input-sm ipt-3" ng-model="productPack" placeholder="请填写产品包装方式" name="productPack">
				</td>
			</tr>
			<tr>
				<td class="client-td-left">付款方式 ：</td>
				<td class="client-td-right">
					<input id="client_paidWay" type="text" class="form-control input-sm ipt-3" ng-model="paidWay" placeholder="请填写付款方式" name="paidWay">
				</td>
			</tr>
			<tr>
				<td class="client-td-left">备注 ：</td>
				<td class="client-td-right">
					<textarea class="form-control input-sm ipt-3" ng-model="remarks" placeholder="请填写备注" name="remarks"></textarea>
				</td>
			</tr>

		</table>
		<div class="client-btn detail-bottom">
			<button id="client_back" class="btn tms-btn tms-btn-back " ui-sref="app.client.client_ManagentNew({name:'clientControllerNew'})"> 返回</button>
			<button id="client_save" class="btn tms-btn tms-btn-save " ng-disabled="step1.$invalid" ng-click="click()">保存</button>
		</div>
	</form>
	</div>
	
</div>